$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .main {
    margin: 200/$f+vw 166/$f+vw;

    .links {
      display: flex;

      a,
      p,
      span {
        color: #000;
        font-size: 24/$f+vw;
        text-transform: uppercase;
      }

      a {
        transition: all 600ms;

        &:hover {
          color: #E60012;
        }
      }

      p {
        opacity: .6;
      }

      span {
        margin: 0 1vw;
      }
    }

    .section1 {
      margin: 181/$f+vw 0 0 0;

      .box {
        display: flex;
        justify-content: space-between;
        gap: 30/$f+vw;

        .l {
          width: 50%;

          .p1 {
            display: flex;
            align-items: center;
            color: rgba(0,0,0,.6);
            font-size: 24/$f+vw;
            &::before{
              width: 113/$f+vw;
              height: 5/$f+vw;
              background: #E60012;
              content:'';
              display: block;
              margin-right: 24/$f+vw;
            }
          }
          .p2{
            color: #000;
            font-size: 48/$f+vw;
            text-transform: uppercase;
            margin-top: 44/$f+vw;
          }
        }

        .r {
          width: 50%;

          .des,
          .des2 {
            color: #000;
            font-size: 24/$f+vw;
            line-height: 1.67;
            font-family: 'Montserrat-Light';
          }
          .des2{
            display: none;
          }
          .btns{
            .more{
              display: flex;
              align-items: center;
              margin-top: 30/$f+vw;
              cursor: pointer;
              p{
                color: #1D2088;
                font-size: 20/$f+vw;
                font-weight: 700;
              }
              svg{
                width: 25/$f+vw;
                display: block;
                margin-left: 10/$f+vw;
                transition: all 600ms;
              }
              &:hover{
                svg{
                  transform: translateX(10px);
                }
              }
            }
            .more:last-child{
              display: none;
            }
          }
        }
      }
      .box2{
        .t {
          color: #000;
          font-size: 48/$f+vw;
          text-transform: uppercase;
          &::before {
            width: 113/$f+vw;
            height: 4/$f+vw;
            content: '';
            display: block;
            background: #E60012;
            margin-bottom: 36/$f+vw;
          }
        }
        .allItems{
          display: grid;
          grid-template-columns: repeat(4, 1fr);
          gap: 40/$f+vw 20/$f+vw;
          .item{
            width: 100%;
            margin-top: 60/$f+vw;
            .pic {
              overflow: hidden;
    
              img {
                width: 100%;
                display: block;
                object-fit: cover;
                transition: all 600ms;
              }
            }
    
            .name {
              color: #000;
              font-size: 24/$f+vw;
              text-transform: capitalize;
              margin: 2vw 0 1vw 0;
              height: 70/$f+vw;
              line-height: 1.4;
              word-break: break-all;
              text-overflow: ellipsis;
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 2;
              overflow: hidden;
            }
    
            .more {
              display: flex;
              align-items: center;
              transition: all 500ms;
              background: #F6F6F6;
              width: fit-content;
              padding: 1vw 2.5vw;
    
              p {
                color: #333;
                font-size: 20/$f+vw;
                font-weight: 500;
                transition: all 500ms;
              }
    
              svg {
                width: 20/$f+vw;
                margin-left: 1vw;
    
                path {
                  transition: all 500ms;
                  stroke: #333333;
                }
              }
            }
    
            &:hover {
              .pic {
                img {
                  transform: scale(1.05);
                }
              }
    
              .more {
                background: #E60012;
    
                p {
                  color: white;
                }
    
                svg {
                  path {
                    stroke: white;
                  }
                }
              }
            }
          }
        }
  
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 100px;

    .main {
      margin: 0 5%;

      .links {

        a,
        p,
        span {
          font-size: 16px;
        }
      }

      .section1{
        .box{
          flex-direction: column;
          .l{
            width: 100%;
            .p1{
              font-size: 18px;
              &::before{
                height: 1px;
                width: 53px;
              }
            }
            .p2{
              font-size: 24px;
              margin: 20px 0;
            }
          }
          .r{
            width: 100%;
            .des,.des2{
              font-size: 16px;
            }
            .more{
              margin-top: 20px;
              p{
                font-size: 16px;
              }
              svg{
                width: 20px;
                margin-left: 10px;
              }
            }
          }
        }
        .box2{
          margin-top: 40px;
          .t {
            font-size:28px;
    
            &::before {
              width: 60px;
              height: 2px;
              margin-bottom: 20px;
            }
          }
          .allItems{
            grid-template-columns: repeat(1, 1fr);
            gap: 0;
            .item{
              width: 100%;
              margin-left: 0;
              margin-bottom: 40px;
              .name{
                font-size: 18px;
                height: auto;
                margin: 20px 0;
              }
              .more{
                padding: 10px 20px;
                p{
                  font-size: 16px;
                }
                svg{
                  width: 15px;
                  margin-left: 10px;
                }
              }
            }
          }
        }
      }

    }
  }
}